package com.googlecode.publicholiday.repository;

import org.joda.time.LocalDate;

public interface MutablePublicHolidayRepository extends ImmutablePublicHolidayRepository {

    /**
     * Add a Public Holiday for a given Country to the repository
     *
     * @param countryCode
     * @param holidayDate
     * @return <tt>true</tt> if the repository did not already contain the specified
     *         Public Holiday for the given Country
     */
    boolean create(String countryCode, LocalDate holidayDate);

    /**
     * Remove a Public Holiday for a given Country
     *
     * @param countryCode
     * @param holidayDate
     * @return <tt>true</tt> if this repository contained the specified element
     */
    boolean delete(String countryCode, LocalDate holidayDate);
}
